package extend;

public class ZooTest extends Zoo{
    public String Plant;//食草 肉食carnvorous
    public void rabbit(){
        System.out.println("rabbit jump ");
    }
    public void sheep(){
        System.out.println("sheep sunning");
    }

    public static void main(String[] args){
        Zoo p=new Zoo();
//        p.setWeight(123.45);
//        p.getWeight();
//        p.move();
//        System.out.println("体重："+p.getWeight());

        ZooTest p1=new ZooTest();
//        p1.Plant="食草动物";
//        p1.rabbit();
//        p1.sheep();
//        System.out.println(p1.Plant);
    }
}
